package pck_Service02;

import android.content.Context;
import android.opengl.GLSurfaceView;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.SurfaceHolder;

public class service_GLGameView
  extends GLSurfaceView
{
  public static boolean isRun;
  public static boolean isWait;
  public static service_GLrenderer m_GLrenderer;
  public static GameThread m_GameThread;
  
  public service_GLGameView(Context paramContext)
  {
    super(paramContext);
    setEGLConfigChooser(8, 8, 8, 8, 16, 0);
    m_GLrenderer = new service_GLrenderer(paramContext);
    setRenderer(m_GLrenderer);
    getHolder().setFormat(-3);
    setRenderMode(0);
    setFocusableInTouchMode(true);
    m_GameThread = new GameThread(paramContext);
    m_GameThread.start();
  }
  
  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    return super.onKeyDown(paramInt, paramKeyEvent);
  }
  
  public boolean onTouchEvent(MotionEvent paramMotionEvent)
  {
    return super.onTouchEvent(paramMotionEvent);
  }
  
  public class GameThread
    extends Thread
  {
    public GameThread(Context paramContext)
    {
      service_GLGameView.isRun = true;
      service_GLGameView.isWait = false;
    }
    
    public void pauseThread()
    {
      service_GLGameView.isWait = true;
      try
      {
        notify();
        return;
      }
      finally {}
    }
    
    public void resumeThread()
    {
      service_GLGameView.isWait = false;
      try
      {
        notify();
        return;
      }
      finally {}
    }
    
    /* Error */
    public void run()
    {
      // Byte code:
      //   0: getstatic 20	pck_Service02/service_GLGameView:isRun	Z
      //   3: ifne +4 -> 7
      //   6: return
      //   7: aload_0
      //   8: getfield 13	pck_Service02/service_GLGameView$GameThread:this$0	Lpck_Service02/service_GLGameView;
      //   11: invokevirtual 39	pck_Service02/service_GLGameView:requestRender	()V
      //   14: ldc2_w 40
      //   17: invokestatic 45	pck_Service02/service_GLGameView$GameThread:sleep	(J)V
      //   20: aload_0
      //   21: monitorenter
      //   22: getstatic 23	pck_Service02/service_GLGameView:isWait	Z
      //   25: istore_2
      //   26: iload_2
      //   27: ifeq +7 -> 34
      //   30: aload_0
      //   31: invokevirtual 48	java/lang/Object:wait	()V
      //   34: aload_0
      //   35: monitorexit
      //   36: goto -36 -> 0
      //   39: astore_1
      //   40: aload_0
      //   41: monitorexit
      //   42: aload_1
      //   43: athrow
      //   44: astore_1
      //   45: aload_1
      //   46: invokevirtual 51	java/lang/InterruptedException:printStackTrace	()V
      //   49: goto -29 -> 20
      //   52: astore_1
      //   53: goto -19 -> 34
      // Local variable table:
      //   start	length	slot	name	signature
      //   0	56	0	this	GameThread
      //   39	4	1	localObject	Object
      //   44	2	1	localInterruptedException	java.lang.InterruptedException
      //   52	1	1	localException	java.lang.Exception
      //   25	2	2	bool	boolean
      // Exception table:
      //   from	to	target	type
      //   22	26	39	finally
      //   30	34	39	finally
      //   34	36	39	finally
      //   40	42	39	finally
      //   7	20	44	java/lang/InterruptedException
      //   30	34	52	java/lang/Exception
    }
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     pck_Service02.service_GLGameView
 * JD-Core Version:    0.7.0.1
 */